package com.cx.caigou.baojia.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class BaoJiaSee {
    @ApiModelProperty(notes = "报价单号")
    //@NotNull(message = "单号不能为空")
    private Integer quotationNumber;
    @ApiModelProperty(notes = "报价时间")
    private Date createTime;
    @ApiModelProperty(notes = "法人id")
    @NotNull(message = "法人名称不能为空")
    private String legalPersonName;

   /* @ApiModelProperty(notes = "报价人员")
    @NotNull(message = "报价人不能为空")
    private String bidderName;*/

    @ApiModelProperty(notes = "报价单为")
    @NotNull(message = "报价单位不能为空")
    private String vendorCode;

    @ApiModelProperty(notes = "报价类型")
    @NotNull(message = "报价类型不能为空")
    private Integer biddingType;

    @ApiModelProperty(notes = "报价币别")
    @NotNull(message = "报价币别不能为空")
    private Integer currencyCode;

    private String currencyCodeWord;

    @ApiModelProperty(notes = "税率")
    @NotNull(message = "汇率不能为空")
    private BigDecimal exchangeRate;

    @ApiModelProperty(notes = "是否含税")
    @NotNull(message = "含税不能为空")
    private Integer isTax;

    private String isTaxName;

    @ApiModelProperty(notes = "报价生效日期")
    private Date startTime;

    @ApiModelProperty(notes = "报价失效日期")
    private Date endTime;

    @ApiModelProperty(notes = "报价总数量")
    /* @NotNull(message = "报价总数量不能为空")*/
    private Integer totalQuantityQuoted;


    @ApiModelProperty(notes = "报价不含税总金额")
    private BigDecimal totalQuotedPrice;

    @ApiModelProperty(notes = "报价含税总金额")
    private BigDecimal totalQuotedTaxPrice;

    @ApiModelProperty(notes = "待报价明细")
    @NotEmpty(message = "待报价明细不能为空")
    @Valid
    private List<SeeVo> quotationItem;


}
